package com.flame.workflow.ru.mapper;

import java.util.List;

import com.flame.workflow.ru.controller.vo.TaskCommentVo;
import com.flame.workflow.ru.entity.TaskComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * flame_workflow_ru_task_comment 流程实例任务用户评论表
 *
 * @author 吴欣童
 * @since 2023-07-05 15:16:33
 */
@Mapper
public interface TaskCommentMapper {

    List<TaskComment> page(TaskCommentVo taskCommentVo);

    void insert(TaskComment taskComment);

    void updateById(TaskComment taskComment);

    void deleteById(@Param("commentId") Long commentId);

    TaskComment findById(@Param("commentId") Long commentId);

    List<TaskComment> listByInstanceId(@Param("instanceId") Long instanceId);

    TaskComment findByTaskIdAndUserId(@Param("taskId") Long taskId,@Param("userId")  String userId);

    void deleteByTaskIdAndUserId(@Param("taskId") Long taskId,@Param("userId")  String userId);
}